package by.grsu.hdm.model;

public class MediaPlayerStatus {
	private static final String PAUSED_AT = "Paused at: ";
	private static final String NOW_PLAYING = "Now playing: ";
	private boolean isPlaying;
	private String currentFile;
	private int currentFileIndex;
	
	public MediaPlayerStatus(boolean isPlaying, String currentFile, int currentFileIndex) {
		this.isPlaying = isPlaying;
		this.currentFile = currentFile;
		this.currentFileIndex = currentFileIndex;
	}

	public boolean isPlaying() {
		return isPlaying;
	}

	public String getCurrentFile() {
		return currentFile;
	}
	
	public String getMessage() {
		if(isPlaying) {
			return NOW_PLAYING + currentFile;
		}
		else {
			return PAUSED_AT + currentFile;
		}
	}
	
	public int getCurrentFileIndex() {
		return currentFileIndex;
	}
}